home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-19 | 3.5 KB | 103 lines | [TEXT/MPS ] |
- #
- # File: Makefile
- #
- # Contains: This makefile creates CCPlusSampleLibrary and its client
- # application called CCPlusSample.
- #
- # Build Command: BuildProgram CCPlusSample
- #
- # Copyright: © 1993-1995 by Apple Computer, Inc., all rights reserved.
- #
- #
-
- SRC = :Sources:
- OBJ = :Objects:
- BLT = :Built:
-
- SLMCIncludes = {SLMInterfaces}CIncludes:
- SLMRIncludes = {SLMInterfaces}RIncludes:
-
- #————————————————————————————————————————————————————————————————————————————————————
- # TARGETS
- #————————————————————————————————————————————————————————————————————————————————————
-
- TARGETS = "{OBJ}SampleLibrary.cl.o" ∂
- "{BLT}CCPlusSampleLibrary" ∂
- "{BLT}CCPlusSample"
-
- #————————————————————————————————————————————————————————————————————————————————————
- # DEFAULT RULES
- #————————————————————————————————————————————————————————————————————————————————————
-
- .cp.o ƒ .cp
- Echo "∂t∂tCompiling {Default}.cp"
- CPlus {DepDir}{Default}.cp -o {Targ} {CPlusOptions}
-
- .c.o ƒ .c
- Echo "∂t∂tCompiling {Default}.c"
- C {DepDir}{Default}.c -o {Targ} {COptions}
-
- #————————————————————————————————————————————————————————————————————————————————————
- # COMPILER/ASSEMBLER OPTIONS
- #————————————————————————————————————————————————————————————————————————————————————
-
- AOptions = -model far -case on
- COptions = -model far -i {SRC} -mbg on -sym full,nolines -mf -b2 -opt full ∂
- -i "{SLMCIncludes}"
- CPlusOptions = -model far -i {SRC} -mbg on -sym full,nolines -mf -b2 -opt full ∂
- -w1 -z15 -z17 -i "{SLMCIncludes}"
-
- #————————————————————————————————————————————————————————————————————————————————————
- # DEPENDENCIES
- #————————————————————————————————————————————————————————————————————————————————————
-
- "{OBJ}" ƒ "{SRC}"
- CCPlusSample ƒ {TARGETS}
-
- #————————————————————————————————————————————————————————————————————————————————————
- # CREATE SAMPLE SHARED LIBRARY
- #————————————————————————————————————————————————————————————————————————————————————
-
- "{OBJ}SampleLibrary.cl.o" ƒ "{OBJ}SampleLibrary.RSRC"
- SetFile -m . {Targ}
-
- "{OBJ}SampleLibrary.RSRC" ƒ "{OBJ}SampleLibrary.cp.o" "{SRC}SampleLibrary.exp"
- BuildSharedLibrary ∂
- {OBJ}SampleLibrary.cp.o ∂
- -macsbug -cfront ∂
- -lib "{OBJ}SampleLibrary.RSRC" ∂
- -obj "{OBJ}CCPlusSampleLibrary" ∂
- -far "{OBJ}SampleLibrary.cl.o" ∂
- -exp "{SRC}SampleLibrary.exp" ∂
- -i "{SRC}" -i "{SLMCIncludes}" -i "{CIncludes}" -p ∂
- "{SLMLibraries}CFrontLibraries:LibraryManager.o" ∂
- "{Libraries}Runtime.o"
-
- "{BLT}CCPlusSampleLibrary" ƒ {SRC}SampleLibrary.h {OBJ}SampleLibrary.cp.o {OBJ}SampleLibrary.RSRC
- Echo "∂t∂tRezzing {Targ}"
- Rez -t libr -c OMGR -s "{OBJ}" ∂
- -i "{SLMRIncludes}" -i "{SRC}" ∂
- -o {Targ} "{SRC}SampleLibrary.r"
- SetFile -a ib {Targ}
-
- #————————————————————————————————————————————————————————————————————————————————————
- # CREATE SAMPLE APPLICATION(CLIENT)
- #————————————————————————————————————————————————————————————————————————————————————
-
- "{BLT}CCPlusSample" ƒƒ {SRC}Sample.h {OBJ}Sample.c.o {OBJ}SampleLibrary.cl.o
- Echo "∂t∂tLinking {Targ}"
- Link -w -model far ∂
- "{OBJ}Sample.c.o" ∂
- "{SLMLibraries}CFrontLibraries:LibraryManager.o" ∂
- "{Libraries}Runtime.o" ∂
- "{Libraries}Interface.o" ∂
- "{OBJ}SampleLibrary.cl.o" ∂
- -o {Targ}
- SetFile {Targ} -t APPL -c 'MOOS' -a B
-
- "{BLT}CCPlusSample" ƒƒ {SRC}Sample.h {SRC}Sample.r {OBJ}Sample.c.o {OBJ}SampleLibrary.cl.o
- Echo "∂t∂tRezzing {Targ}"
- Rez -i "{SRC}" -rd -o {Targ} "{SRC}"Sample.r -append
-
- "{OBJ}SampleLibrary.cp.o" ƒ "{SRC}SampleLibrary.h"
- "{OBJ}Sample.c.o" ƒ "{SRC}SampleLibrary.h" "{SRC}Sample.h"